package org.bookie.model.services;

import java.util.List;

import org.bookie.model.BetSlip;
import org.bookie.model.Period;
import org.bookie.model.User;
import org.bookie.model.services.impl.GenericDAO;

/**
 * DAO Interface for {@link BetSlip} class
 * 
 * @author drobiazko
 *
 */
public interface BetSlipDAO extends GenericDAO<BetSlip, Long>{

	/**
	 * Returns all betslips for given user
	 * that were submited over specified period
	 * 
	 * @param user to find BetSlip of
	 * @param period period to look for
	 */
	public List<BetSlip> findByUser(User user, Period period);
	
	/**
	 * Returns all {@link BetSlip} for given user identifier
	 * 
	 * @param id user identifier to find BetSlip of
	 */
	public List<BetSlip> findByUserId(Long id);
}
